package com.sky.Push.BizHandler;

import com.sky.Push.Annotion.HandlerMapping;
import com.sky.Protocol.MessageProtocol;
import org.springframework.stereotype.Component;

/**
 * Created by sun on 2017-06-14.
 */
//@Component
//@HandlerMapping(type = 2)
//public class TestBizHandler implements IHandler {
//    public String handle(String request) {
//        return "test1";
//    }
//}

@Component
public class TestBizHandler {

    @HandlerMapping(type = 0)
    public String handle(String request) {
        return "pong";
    }

    @HandlerMapping(type = 1)
    public String handle1(String request) {
        return "test1";
    }

    @HandlerMapping(type = 2)
    public String handle2(String request) {
        return "test2";
    }

    @HandlerMapping(type = 3)
    public String handle3(MessageProtocol msg) {
        return "test3";
    }
}

